package com.zeldu.exam.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.sql.Timestamp;

@Data
@TableName("course")
public class Course {

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @TableId(value = "course_name")
    private String courseName;

    @TableId(value = "createTime")
    private Timestamp createTime;

    @TableId(value = "class_id")
    private Long classId;  //当前课程对应的班级id

    @TableId(value = "teacher_id")
    private Long teacherId;

    @TableId(value = "cover")
    private String cover;

    private String realName; //老师名字

    private String className;

    private Long cid;  //老师所在的全部班级的id

    private Long studentId;
}
